package com.elock.service.serviceImpl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.elock.base.core.service.impl.BaseServiceImpl;
import com.elock.dao.TerminalPositionDao;
import com.elock.entity.TerminalPosition;
import com.elock.service.TerminalPositionService;

/**
 * @author 仁德
 */
@Service("terminalPositionServiceImpl")
public class TerminalPositionServiceImpl extends BaseServiceImpl<TerminalPosition> implements TerminalPositionService {

	@Resource(name = "terminalPositionDao")
	private TerminalPositionDao terminalPositionDao;

	@Override
	@Transactional(readOnly = true)
	public Integer count(String terminalNum, String startTime, String endTime) {
		return terminalPositionDao.count(terminalNum, startTime, endTime);
	}

	@Override
	@Transactional(readOnly = true)
	public List<Map<String, Object>> ExportProductPriceHead(String terminalNum, String startTime, String endTime,
			Integer page, Integer size) {
		return terminalPositionDao.ExportProductPriceHead(terminalNum, startTime, endTime, page, size);
	}
}
